import type { AddPropertybillParams, BudgetAmountParams, BudgetAmountRes, BuildRes, PropertbillData, PropertbillParams } from "@/types/Propertybill"
import { request } from "@/utils/reuqest"

/**
 * 获取物业费列表
 */
export const getPropertybillAPI = (params: PropertbillParams) => {
  return request<PropertbillData>('/park/propertyfee', 'GET', params)
}

/**
 * 添加账单
 * @param {*} params
 */
export const AddPropertybillAPI = (params: AddPropertybillParams) => {
  return request('/park/propertyfee', 'POST', params)
}

/**
 * 查询所有楼宇
 */
export const getBuildAPI = () => {
  return request<BuildRes[]>('/park/all/building', 'GET')
}

/**
 * 预算金额
 */

export const BudgetAmountAPI = (params: BudgetAmountParams) => {
  return request<BudgetAmountRes>('/park/propertyfee/pre/payment', 'POST', params)
}